<include file="public@header"/>
</head>
<body>
<div class="lyear-layout-web">
    <div class="lyear-layout-container">
        <!--页面主要内容-->
        <main class="lyear-layout-content">
          
            <div class="container-fluid">
            
                <div class="row">
                   <div class="col-md-12">
                        <div class="card">
                            <ul class="nav nav-tabs">
                                <li><a href="{:url('theme/index')}">所有模板</a></li>
                                <li class="active">
                                    <a>安装模板</a>
                                </li>
                                <li>
                                    <a href="http://www.thinkcmf.com/faq.html?url=https://www.kancloud.cn/thinkcmf/faq/493511"
                                       target="_blank">安装说明 <i class="fa fa-question-circle"></i></a>
                                </li>
                            </ul>
                            <div class="card-body">
                                <form method="post" class="js-ajax-form margin-top-20">
                                    <php> $status=array("1"=>lang('DISPLAY'),"0"=>lang('HIDDEN'));</php>
                                    <div class="table-responsive">
                                        <table class="table table-hover" >
                                            <thead>
                                            <tr>
                                                <th>模板</th>
                                                <th>模板名称</th>
                                                <th>版本号</th>
                                                <th>作者</th>
                                                <th>模板描述</th>
                                                <th width="120">{:lang('ACTIONS')}</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <foreach name="themes" item="vo">
                                                <tr>
                                                    <td>{$vo.theme}</td>
                                                    <td>{$vo.name}</td>
                                                    <td>{$vo.version}</td>
                                                    <td>{$vo.author}</td>
                                                    <td>{$vo.description}</td>
                                                    <td>
                                                        <a href="{:url('theme/installTheme',array('theme'=>$vo['theme']))}" class="btn btn-xs btn-primary js-ajax-dialog-btn js-ajax-dialog-btn">安装</a>
                                                    </td>
                                                </tr>
                                            </foreach>
                                            </tbody>
                                            <tfoot>
                                            <tr>
                                                <th>模板</th>
                                                <th>模板名称</th>
                                                <th>版本号</th>
                                                <th>作者</th>
                                                <th>模板描述</th>
                                                <th width="120">{:lang('ACTIONS')}</th>
                                            </tr>
                                            </tfoot>
                                        </table>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>
</div>
<script src="__TMPL__/public/assets/js/admin.js"></script>
</body>
</html>